package com.hspedu.extends_;

public class Pc extends Computer {

    private String brand;

    public Pc(String CPU, String intSto, String hard_disk, String brand) {
        super(CPU, intSto, hard_disk);
        this.brand = brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getBrand() {
        return brand;
    }

    public void showInfo() {
        System.out.println("Pc信息：\n" + "brand：" + getBrand() + " " + getDetails());
    }

}
